<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/common/includes.jsp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html id="zzzzzz" xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>zzzzzz - Reset password</title>
	<%@ include file="/WEB-INF/common/meta.jsp" %>
	<%@ include file="/WEB-INF/common/global_style.jsp" %>
	<%@ include file="/WEB-INF/common/global_script.jsp" %>
	<script type="text/javascript" src="${ctx}/res/js/reset_password.js" ></script>
</head>
<body>

<%@ include file="/WEB-INF/common/header.jsp" %>

<div class="wrapper-content">
	<div class="rp-wrap wrap">
		<div class="main-content ">
			<h1>Change your password</h1>
			<form:form id="rp_form" method="post" modelAttribute="resetPasswordVo" action="${ctx}/account/reset_password/${token}" class="reset-password">
				<form:errors path="*" element="div" cssClass="msg-error"/>
				<zzzzzz-ui:message key="msg_alert_pwd_reset_token_expired" type="alert" />
				<zzzzzz-ui:message key="msg_error_process_request" type="error" />
				<div class="fieldset">
					<label for="rp_new" class="pbs clearfix">New Password<span id="rp_new_error_msg" class="error rfloat"></span></label>
					<form:password path="newPassword" id="rp_new" maxlength="20" tabindex="1" />
				</div>
				<div class="fieldset">
					<label for="rp_re_new" class="pbs clearfix">Verify New Password<span id="rp_re_new_error_msg" class="error rfloat"></span></label>
					<form:password path="reNewPassword" id="rp_re_new" maxlength="20" tabindex="2" />
				</div>
				<div class="fieldset">
					<input id="rp_submit" type="submit" name="rp-submit" class="btn style1 large" value="Change" tabindex="3" />
				</div>
			</form:form>
		</div>
	</div>
</div>

<script type="text/javascript">

jq(document).ready(function() {
	
	var resetPassword = new ResetPassword({
		'j_rp_form' : jq("#rp_form"),
		'j_rp_new' : jq("#rp_new"),
		'j_rp_re_new' : jq("#rp_re_new"),
		'j_rp_new_error_msg' : jq("#rp_new_error_msg"),
		'j_rp_re_new_error_msg' : jq("#rp_re_new_error_msg"),
		'j_rp_submit' : jq("#rp_submit")
	});
	
});

</script>

<%@ include file="/WEB-INF/common/footer.jsp" %>

</body>
</html>
